package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 胶塞实际数据 对应表 CM_RUBBER_PLUG_WORK
public class CM_RubberPlugWork extends BABaseEntity {
    @Id
    @GenericGenerator(name="rubberWorkGenerator", strategy="uuid")
    @GeneratedValue(generator="rubberWorkGenerator")
    private String CM_RubberPlugWork_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "NAME", length = 50)
    private String name;

    @Basic
    @Column(name = "LENGTH")
    private Double length;

    @Basic
    @Column(name = "DIAMETER1")
    private Double diameter1;

    @Basic
    @Column(name = "DIAMETER2")
    private Double diameter2;

    @Basic
    @Column(name = "NO", length = 50)
    private String NO;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;
}
